﻿@model FairyWorld.Models.Email

@{
    ViewBag.Title = "SendEmail";
    Layout = "~/Views/Shared/UserLayout.cshtml";
}

@using (Html.BeginForm("SendEmails","User", FormMethod.Post)) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>发送邮件</legend>

        <div class="editor-label">主题</div>
        <div class="editor-field">
            <div  class="input-xlarge">
            @Html.EditorFor(model => model.subject)
                </div>
        </div>
        <div class="editor-label">收件人</div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.emailaddresses, 3,2,new { style="resize:none"})
        </div>
        <div class="editor-label">正文</div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.message, 10, 4, new { style="resize:none"})
        </div>

        <div>
            <input type="submit" class="btn" value="发送邮件"/>
        </div>   
    </fieldset>
}


<div>
    @Html.ActionLink("返回联系人", "Contact")
</div>
